{include file="public/header" /}
</head>
<body>
<div class="x-body">
	<form action="{:_url('save')}" class="layui-form layui-form-pane" id="form">
		<input type="hidden" name="id" value="{$info.id}"/>
		<div class="layui-form-item">
			<label class="layui-form-label"><span class="x-red">*</span>名称</label>
			<div class="layui-input-block">
				<input type="text" name="title" value="{$info.title}" placeholder="请输入名称" lay-verify="required" class="layui-input"/>
			</div>
		</div>
		<div class="layui-form-item uploadImageBox">
			<label class="layui-form-label">图片</label>
			<div class="layui-input-block">
				<div class="layui-upload">
					<button type="button" class="layui-btn uploadImage">上传图片</button>
					<img class="layui-upload-img showImage" src="{$info.img}"/>
					<input type="hidden" name="img" value="{$info.img}" class="inpImage"/>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><span class="x-red">*</span>链接</label>
			<div class="layui-input-block">
				<input type="text" name="link" value="{$info.link}" placeholder="请输入链接" lay-verify="required" class="layui-input"/>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><span class="x-red">*</span>排序</label>
			<div class="layui-input-block">
				<input type="text" name="sort" value="{$info.sort}" placeholder="请输入排序" lay-verify="required" class="layui-input"/>
			</div>
		</div>

		<div class="layui-form-item" style="text-align: center;">
			<button class="layui-btn" lay-filter="save" lay-submit formObj="#form">保存</button>
		</div>
	</form>
</div>
</body>
</html>